package com.lsa.letcode.the13.romanToInt;

import org.junit.Assert;
import org.junit.Test;

public class RomanToIntTest {
	@Test
	public void test(){
		Solution s = new Solution();
		Assert.assertEquals(1, s.romanToInt("I"));
		Assert.assertEquals(2, s.romanToInt("II"));
		Assert.assertEquals(3, s.romanToInt("III"));
		Assert.assertEquals(4, s.romanToInt("IV"));
		Assert.assertEquals(5, s.romanToInt("V"));
		Assert.assertEquals(6, s.romanToInt("VI"));
		Assert.assertEquals(7, s.romanToInt("VII"));
		Assert.assertEquals(8, s.romanToInt("VIII"));
		Assert.assertEquals(9, s.romanToInt("IX"));
		Assert.assertEquals(10, s.romanToInt("X"));
		Assert.assertEquals(41, s.romanToInt("XLI"));
		Assert.assertEquals(42, s.romanToInt("XLII"));
		Assert.assertEquals(90, s.romanToInt("XC"));
		Assert.assertEquals(400, s.romanToInt("CD"));
		Assert.assertEquals(401, s.romanToInt("CDI"));
		Assert.assertEquals(902, s.romanToInt("CMII"));
	}
	
	@Test
	public void mmain() {
		System.out.println(String.format("%s,%s,%s,%s", ((int)'a'),((int)'z'),((int)'A'),((int)'Z')));
	}
}